//
//  TJSectionLabel.h
//  FontTest
//
//  Created by mac on 2024/8/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class TJSectionView, TJSectionLabel, TJSectionModel;

@protocol TJSectionViewDelegate <NSObject>

- (void)sectionView:(TJSectionView *)sectionView tapLabel:(TJSectionLabel *)label;


@end


@interface TJSectionLabel: UILabel

@property (nonatomic, strong) TJSectionModel *model;


@end


@interface TJSectionModel : NSObject

@property (nonatomic, copy) NSString *text;
@property (nonatomic, assign, readonly) BOOL ableEdit;

@end

@interface TJSectionView : UIView

@property (nonatomic, copy) NSString *text;
@property (nonatomic, strong, nullable) NSArray *indexs;
@property (nonatomic, weak) id <TJSectionViewDelegate> delegate;
@property (nonatomic, copy) NSAttributedString *attributedText;
- (NSString *)getCurrentText;
- (void)reloadData;
@property (nonatomic, assign) CGFloat maxW;
@property (nonatomic, assign) BOOL isSelect;

@end

NS_ASSUME_NONNULL_END
